/* 开发者管理页面样式 */

/* 侧边栏样式 */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

/* 主内容区域 */
main {
    padding-top: 1rem;
}

/* 开发者列表样式 */
.developer-list {
    margin-top: 1rem;
}

.developer-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.developer-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.developer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.developer-info {
    flex: 1;
}

.developer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.developer-role {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.developer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.developer-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 状态徽章样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d1edff;
    color: #0969da;
}

.status-busy {
    background-color: #fff3cd;
    color: #856404;
}

.status-on-leave {
    background-color: #f8d7da;
    color: #721c24;
}

.status-inactive {
    background-color: #e2e3e5;
    color: #41464b;
}

/* 角色徽章样式 */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.role-junior {
    background-color: #e7f3ff;
    color: #0969da;
}

.role-developer {
    background-color: #f0f9ff;
    color: #0284c7;
}

.role-senior {
    background-color: #ecfdf5;
    color: #059669;
}

.role-lead {
    background-color: #fef3c7;
    color: #d97706;
}

.role-architect {
    background-color: #fdf4ff;
    color: #a855f7;
}

.role-manager {
    background-color: #fef2f2;
    color: #dc2626;
}

/* 搜索和筛选区域 */
.search-filters {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .developer-card {
        padding: 1rem;
    }
    
    .developer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .developer-name {
        font-size: 1.1rem;
    }
    
    .developer-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .developer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .developer-actions .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sidebar {
        display: none;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .developer-card {
        padding: 0.75rem;
    }
    
    .developer-info {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    max-width: 400px;
    margin: 0 auto;
}

/* 模态框样式增强 */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Toast 通知样式 */
.toast {
    min-width: 300px;
}

.toast-header {
    font-weight: 600;
}

/* 按钮样式增强 */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* 表单样式增强 */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}